package com.example.qxfw.ybzz.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qxfw.common.entity.qx.YbzzForecastkeguandz;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
@DS("service")
public interface YbzzForecastkeguandzMapper extends BaseMapper<YbzzForecastkeguandzMapper> {
    /**
     * 插入数据
     * @param ybzzForecastkeguandz
     * @return
     */
    Integer insert(YbzzForecastkeguandz ybzzForecastkeguandz);

    /**
     * 删除数据
     * @param timespan
     * @param param1
     * @param param2
     * @param forecastType
     * @return
     */
    @Delete("delete ybzz_forecastkeguandz form where ${timespan} > ${param1} AND ${timespan} <= ${param2} and ForecastType=${forecastType}")
    Integer delete(String timespan,String param1, String param2, String forecastType);
}
